package com.micro.Controller;

import com.micro.mapper.BookMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RequestMapping("/hello")
@RestController
public class HelloController {

    @Autowired
    private BookMapper bookMapper;

    @RequestMapping("/world")
    public String sayHi(){
        System.out.println(bookMapper.selectByPrimaryKey(1L)+"1111111111111111111111");
        return "hello world(child_1)";
    }

}
